<?php
class Operations {
 public static function getOperationsArray($actions, $controller) {
		$array = array();
		if($actions != null && !empty($actions)) {
			foreach($actions as $key => $value) {
				$array[] = array('label'=>Yii::t('Operations',$key, array('{attribute}'=>$controller)),'url'=>array($value));
			}
		}
		return $array;
	}
}
?>